package me.xuym.md2htm.entity;

import com.cbs.java.component.application.BaseArgs;
import org.kohsuke.args4j.Option;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by broche on 10/27/16.
 */
public class Args extends BaseArgs {
    @Option(name = "-o", aliases = "-output", usage = "output file/directory(File)")
    private File outputFile;

    private List<String> ignoreList = new ArrayList<>();

    @Option(name = "-ig", aliases = "-ignore", usage = "ignore pattern(String)")
    public void setIgnore(String ignore) {
        ignoreList.add(ignore);
    }

    @Option(name = "-h", aliases = "--help", usage = "help")
    private boolean isHelp = false;

    @Option(name = "-s", aliases = "-style", usage = "specify a style")
    private String style = "";

    public File getOutputFile() {
        return outputFile;
    }

    public List<String> getIgnoreList() {
        return ignoreList;
    }

    public boolean isHelp() {
        return isHelp;
    }

    public String getStyle() {
        return style;
    }
}
